package com.jinghao.ctws.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.jinghao.core.common.controller.JingHaoBaseController;
import com.jinghao.core.common.entity.JingHaoBaseEntity;
import com.jinghao.ctws.service.ICwvPublicSynchronousService;

@Controller
@Scope("prototype")
@RequestMapping(value = "/app/ctws/public/syn")
public class CwvPublicSynchronousController extends JingHaoBaseController {
	//==================定制内容开始======================
//在这里修改代码
	/**
	 * 云平台接收仓库摄像头信息
	 * @param  
	 */
	@ResponseBody
	@RequestMapping(value = "/updateSynchronousCamera",method = RequestMethod.POST) 
	public Map<String, Object> updateSynchronousCamera(@ModelAttribute("model") JingHaoBaseEntity model){ 
		this.getCwvPublicSynchronousService().updateSynchronousCamera(model);
        return model.getJson();   
	}
	
	/**
	 * 云平台接收仓库流程配置信息
	 * @param  
	 */
	@ResponseBody
	@RequestMapping(value = "/updateSynchronousFlow",method = RequestMethod.POST) 
	public Map<String, Object> updateSynchronousFlow(@ModelAttribute("model") JingHaoBaseEntity model){ 
		this.getCwvPublicSynchronousService().updateSynchronousFlow(model);
        return model.getJson();   
	}
	
	/**
	 * 云平台接收仓库托盘信息
	 * @param  
	 */
	@ResponseBody
	@RequestMapping(value = "/updateSynchronousPallet",method = RequestMethod.POST) 
	public Map<String, Object> updateSynchronousPallet(@ModelAttribute("model") JingHaoBaseEntity model){ 
		this.getCwvPublicSynchronousService().updateSynchronousPallet(model);
        return model.getJson();   
	}
	/**
	 * 云平台接收重置合并视频信息
	 * @param  
	 */
	@ResponseBody
	@RequestMapping(value = "/updateReSetPalletFile",method = RequestMethod.POST) 
	public Map<String, Object> updateReSetPalletFile(@ModelAttribute("model") JingHaoBaseEntity model){ 
		this.getCwvPublicSynchronousService().updateReSetPalletFile(model);
        return model.getJson();   
	}
	/**
	 * 云平台接收仓库托盘环节信息
	 * @param  
	 */
	@ResponseBody
	@RequestMapping(value = "/updateSynchronousProcess",method = RequestMethod.POST) 
	public Map<String, Object> updateSynchronousProcess(@ModelAttribute("model") JingHaoBaseEntity model){ 
		this.getCwvPublicSynchronousService().updateSynchronousProcess(model);
        return model.getJson();   
	}
	/**
	 * 云平台接收重置环节视频信息
	 * @param  
	 */
	@ResponseBody
	@RequestMapping(value = "/updateReSetProcessFile",method = RequestMethod.POST) 
	public Map<String, Object> updateReSetProcessFile(@ModelAttribute("model") JingHaoBaseEntity model){ 
		this.getCwvPublicSynchronousService().updateReSetProcessFile(model);
        return model.getJson();   
	}
	/**
	 * 云平台接收仓库托盘产品信息
	 * @param  
	 */
	@ResponseBody
	@RequestMapping(value = "/updateSynchronousProduct",method = RequestMethod.POST) 
	public Map<String, Object> updateSynchronousProduct(@ModelAttribute("model") JingHaoBaseEntity model){ 
		this.getCwvPublicSynchronousService().updateSynchronousProduct(model);
        return model.getJson();   
	}
	/**
	 * 云平台接收重置理损视频信息
	 * @param  
	 */
	@ResponseBody
	@RequestMapping(value = "/updateReSetProductFile",method = RequestMethod.POST) 
	public Map<String, Object> updateReSetProductFile(@ModelAttribute("model") JingHaoBaseEntity model){ 
		this.getCwvPublicSynchronousService().updateReSetProductFile(model);
        return model.getJson();   
	}
	/**
	 * 云平台接收仓库合并视频信息
	 * @param  
	 */
	@ResponseBody
	@RequestMapping(value = "/updateSynchronousPalletFileData",method = RequestMethod.POST) 
	public Map<String, Object> updateSynchronousPalletFileData(@ModelAttribute("model") JingHaoBaseEntity model){ 
		this.getCwvPublicSynchronousService().updateSynchronousPalletFileData(model);
        return model.getJson();   
	}
	
	/**
	 * 云平台接收仓库环节视频信息
	 * @param  
	 */
	@ResponseBody
	@RequestMapping(value = "/updateSynchronousProcessFileData",method = RequestMethod.POST) 
	public Map<String, Object> updateSynchronousProcessFileData(@ModelAttribute("model") JingHaoBaseEntity model){ 
		this.getCwvPublicSynchronousService().updateSynchronousProcessFileData(model);
        return model.getJson();   
	}
	/**
	 * 云平台接收仓库短损视频信息
	 * @param  
	 */
	@ResponseBody
	@RequestMapping(value = "/updateSynchronousProductFileData",method = RequestMethod.POST) 
	public Map<String, Object> updateSynchronousProductFileData(@ModelAttribute("model") JingHaoBaseEntity model){ 
		this.getCwvPublicSynchronousService().updateSynchronousProductFileData(model);
        return model.getJson();   
	}
	
	/**
	 * 接收仓库托盘统计数据
	 * @param  
	 */
	@ResponseBody
	@RequestMapping(value = "/synchronousAllPalletTjData",method = RequestMethod.POST) 
	public Map<String, Object> synchronousAllPalletTjData(@ModelAttribute("model") JingHaoBaseEntity model){ 
		this.getCwvPublicSynchronousService().updateSynchronousAllPalletTjData(model);
        return model.getJson();   
	}
	
	//==================定制内容结束======================

	@Autowired
	public void setCwvPublicSynchronousServiceService(ICwvPublicSynchronousService cwvPublicSynchronousService) {
		super.setIJingHaoBaseService(cwvPublicSynchronousService);
	}

	public ICwvPublicSynchronousService getCwvPublicSynchronousService() {
		return (ICwvPublicSynchronousService) super.getIJingHaoBaseService();
	}
}
